package huffman;

public class Node {
	public int data;
	public int parent;
	public int left;
	public int right;
	
	public Node(int weight) {
		data=weight;
		parent=left=right=-1;
	}
	
	public Node(int weight,int parent,int left,int right) {
		this.data=weight;
		this.parent=parent;
		this.left=left;
		this.right=right;
	}	
	
}
